package cn.fifthquestion;

public class Aodi extends Car{
    private int price;
    private String model;

    public Aodi(){

    }

    public Aodi(int price, String model,String brand) {
        super(brand);
        this.price = price;
        this.model = model;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public void drive(){
        String str=String.format("品牌%s,价格%d,型号%s",super.getBrand(),price,model);
        StringBuffer stringBuffer = new StringBuffer(str);
        stringBuffer.append("它不可以变速");
        System.out.println(stringBuffer);
    }
}
